import tornado
from loguru import logger

from websocket.websocketHandler import WebSocketHandler

if __name__ == '__main__':
    app = tornado.web.Application([
        (r'/websocket', WebSocketHandler),
    ])
    port = 8888
    app.listen(port)
    logger.info(f"Server started at ws://localhost:{port}")
    tornado.ioloop.IOLoop.current().start()
